﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using HA.Data;

using System.Windows.Controls;

namespace HA.ModFlow.Application
{
    public class Scatter3DViewModel:MDTVIViewModel
    {

        public Scatter3DViewModel(MDTVIViewModel parent, Scatter3D scatter)
            : base(parent, false)
        {


            this._scatter = scatter;



            this._contextMenu = new System.Windows.Controls.ContextMenu();

            MenuItem mi = new MenuItem();
            mi.Header = "缩放到...";
            mi.Command = GISCommands.ExtentToCurrent;

            mi.CommandParameter = _scatter.Key.ToString();

            this._contextMenu.Items.Add(mi);

            this._contextMenu.Items.Add(new Separator());

            mi = new MenuItem();
            mi.Header = "删除";
            mi.Command = Data2Commands.RemoveScatter3D;
            mi.CommandParameter = _scatter;

            this._contextMenu.Items.Add(mi);


            mi = new MenuItem();
            mi.Header = "插值到";

            //子项
            MenuItem menu;

            //menu= new MenuItem();
            //menu.Header = "Active TIN";
            //mi.Items.Add(menu);

            // menu = new MenuItem();
            //menu.Header = "2D Mesh";
            //mi.Items.Add(menu);

            //menu = new MenuItem();
            //menu.Header = "2D Grid";
            //mi.Items.Add(menu);

            //menu = new MenuItem();
            //menu.Header = "3D Mesh";
            //mi.Items.Add(menu);

            menu = new MenuItem();
            menu.Header = "三维网格";
            mi.Items.Add(menu);

            //menu = new MenuItem();
            //menu.Header = "MODFLOW图层";
            //mi.Items.Add(menu);

            //子项结束
            this._contextMenu.Items.Add(mi);



            mi = new MenuItem();
            mi.Header = "边框转为Grid3D...";
            this._contextMenu.Items.Add(mi);





            this.LoadChildren();



        }


        Scatter3D _scatter;

        public Scatter3D Scatter
        {
            get { return _scatter; }
            set { _scatter = value; }
        }

        public override string Desc
        {
            get
            {
                return this._scatter.Name;
            }

        }







    }
}
